/*
 * MyBank.cn Inc.
 * Copyright (c) 2015-2021 All Rights Reserved.
 */
package me.caosh.util.factory;

/**
 * 组件工厂，实现类必须打上@Factory注解
 *
 * @author mujiang.csh
 * @version v0.1, created at 2021/8/7 17:59
 */
public interface ComponentFactory<T> {
    /**
     * 根据组件key获取组件单例
     *
     * @param componentKey 组件key
     * @return 组件
     */
    T get(String componentKey);
}